import java.util.Scanner;

public class test21 {
    public static void main(String[] args) {
        // 应该是求最大公约数
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int m = in.nextInt();
        System.out.println((n*m)/getResult(n,m));
    }

    public static int getResult(int n,int m){
        if(m == 0)
            return n;
        return getResult(m,n%m);
    }
}
